package com.itheima.exerciseTest.method01_09.method5;
/*
    狗类
    行为：吃饭（啃骨头）、游泳（狗刨）
*/
public class Dog extends Animal implements Inter {
    public Dog() {
    }

    public Dog(int age) {
        super(age);
    }

    @Override
    public void drinking() {
        System.out.println("喝水");
    }

    @Override
    public void eat() {
        System.out.println("狗啃骨头");
    }

    @Override
    public void swimming() {
        System.out.println("狗会狗刨游泳");
    }
}
